#ifndef FFEndEvent_H
#define FFEndEvent_H

#include"ffevent.h"
class FFEndEvent : public FFEvent
{
public:
    FFEndEvent(FFPlayerContext* playerCtx);
    virtual ~FFEndEvent() override;

    virtual void work() override;

private:
    FFDemuxerThread* demuxerThread;
    FFVDecoderThread* vDecoderThread;
    FFADecoderThread* aDecoderThread;
    FFVRender* vRender;
    FFDemuxer* demuxer;
    FFADecoder* aDecoder;
    FFVDecoder* vDecoder;
    FFAPacketQueue* aPktQueue;
    FFVPacketQueue* vPktQueue;
    FFAFrameQueue* aFrmQueue;
    FFVFrameQueue* vFrmQueue;
    FFPlayerWindow* playerWindow;
};

#endif // FFEndEvent_H
